/*    */ package com.zimbra.cs.account.gal;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class GalNamedFilter
/*    */ {
/*    */   private static final String ZIMBRA_ACCOUNT_AUTO_COMPLETE = "zimbraAccountAutoComplete";
/*    */   
/*    */ 
/*    */ 
/*    */   private static final String ZIMBRA_CALENDAR_RESOURCE_AUTO_COMPLETE = "zimbraResourceAutoComplete";
/*    */   
/*    */ 
/*    */ 
/*    */   private static final String ZIMBRA_GROUP_AUTO_COMPLETE = "zimbraGroupAutoComplete";
/*    */   
/*    */ 
/*    */ 
/*    */   private static final String ZIMBRA_ACCOUNTS = "zimbraAccounts";
/*    */   
/*    */ 
/*    */ 
/*    */   private static final String ZIMBRA_CALENDAR_RESOURCES = "zimbraResources";
/*    */   
/*    */ 
/*    */   private static final String ZIMBRA_GROUPS = "zimbraGroups";
/*    */   
/*    */ 
/*    */   private static final String ZIMBRA_ACCOUNT_SYNC = "zimbraAccountSync";
/*    */   
/*    */ 
/*    */   private static final String ZIMBRA_CALENDAR_RESOURCE_SYNC = "zimbraResourceSync";
/*    */   
/*    */ 
/*    */   private static final String ZIMBRA_GROUP_SYNC = "zimbraGroupSync";
/*    */   
/*    */ 
/*    */ 
/*    */   public static String getZimbraCalendarResourceFilter(GalOp galOp)
/*    */   {
/* 42 */     String filter = null;
/*    */     
/* 44 */     if (galOp == GalOp.autocomplete) {
/* 45 */       filter = "zimbraResourceAutoComplete";
/* 46 */     } else if (galOp == GalOp.search) {
/* 47 */       filter = "zimbraResources";
/* 48 */     } else if (galOp == GalOp.sync) {
/* 49 */       filter = "zimbraResourceSync";
/*    */     }
/* 51 */     return filter;
/*    */   }
/*    */   
/*    */   public static String getZimbraGroupFilter(GalOp galOp) {
/* 55 */     String filter = null;
/*    */     
/* 57 */     if (galOp == GalOp.autocomplete) {
/* 58 */       filter = "zimbraGroupAutoComplete";
/* 59 */     } else if (galOp == GalOp.search) {
/* 60 */       filter = "zimbraGroups";
/* 61 */     } else if (galOp == GalOp.sync) {
/* 62 */       filter = "zimbraGroupSync";
/*    */     }
/* 64 */     return filter;
/*    */   }
/*    */   
/*    */   public static String getZimbraAcountFilter(GalOp galOp) {
/* 68 */     String filter = null;
/*    */     
/* 70 */     if (galOp == GalOp.autocomplete) {
/* 71 */       filter = "zimbraAccountAutoComplete";
/* 72 */     } else if (galOp == GalOp.search) {
/* 73 */       filter = "zimbraAccounts";
/* 74 */     } else if (galOp == GalOp.sync) {
/* 75 */       filter = "zimbraAccountSync";
/*    */     }
/* 77 */     return filter;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/gal/GalNamedFilter.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */